﻿-- =============================================
-- Author:		<Author,XFL>
-- Create date: <Create Date,20111224>
-- Description:	<Description,用于财务发放工资之后 出勤数据将不能修改>
-- =============================================
CREATE PROCEDURE [dbo].[proc_Wage_update_Employee_Attendance] 
	-- Add the parameters for the stored procedure here
	@CompanyId int,
	@UserName nvarchar(Max),
	@FaFangMonth nvarchar(7)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering ;WITH SELECT statements.
	SET NOCOUNT ON;

EXEC('
	UPDATE Employee_Attendance 
	SET [Wage_FF] = 1
	Where  CompanyId='+@CompanyId+' and  UserName in ('+@UserName +') and  Convert(nchar(7),KouKuanToDate,120)='''+@FaFangMonth+'''
')
END
